<template>
  <el-card>
    <h3>单位分组管理</h3>
    <el-table :data="groups" style="width: 100%">
      <el-table-column prop="code" label="分组编号" />
      <el-table-column prop="name" label="分组名称" />
      <el-table-column prop="unitCount" label="单位数量" />
      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button type="primary" size="mini" @click="saveGroup(scope.row)">保存</el-button>
        </template>
      </el-table-column>
    </el-table>
  </el-card>
</template>

<script>
export default {
  name: "Dwfzgl",
  data() {
    return {
      groups: [
        { code: "FZ001", name: "集团一组", unitCount: 5 },
        { code: "FZ002", name: "集团二组", unitCount: 3 },
      ],
    };
  },
  methods: {
    saveGroup(row) {
      this.$message.success(`分组"${row.name}"已保存（模拟）`);
    },
  },
};
</script> 